Skip to content

Detect PICO_COMPILER automatically when PICO_TOOLCHAIN_PATH is set#2937

Merged
kilograham merged 2 commits into
developfrom
compiler-detect
May 19, 2026
Merged

Detect PICO_COMPILER automatically when PICO_TOOLCHAIN_PATH is set#2937
kilograham merged 2 commits into
developfrom
compiler-detect

Conversation

@kilograham
Copy link
Copy Markdown
Contributor

In passing with other compiler/clib related changes, this PR removes the need to specify PICO_COMPILER when already specifying PICO_TOOLCHAIN_PATH

Thus PICO_DEFAULT_COMPILER is now only used if you have neither specified PICO_COMPILER or a toolchain file/path in which case you're basically looking in the users path environment at which point it's not a bad idea to pick one to look for (we could even help there, but that is a more involved change)

@kilograham kilograham requested a review from will-v-pi May 14, 2026 20:48
@kilograham kilograham added this to the 2.2.1 milestone May 14, 2026
Comment thread cmake/pico_pre_load_toolchain.cmake
Comment thread cmake/pico_pre_load_toolchain.cmake Outdated
Comment thread cmake/pico_pre_load_toolchain.cmake Outdated
Co-authored-by: will-v-pi <108662275+will-v-pi@users.noreply.github.com>
Comment thread cmake/pico_pre_load_toolchain.cmake
@kilograham kilograham merged commit 0fb4e0b into develop May 19, 2026
13 checks passed
@kilograham kilograham deleted the compiler-detect branch May 19, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants